package com.virgo.demo.cms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.virgo.common.entity.ListDataVo;
import com.virgo.demo.cms.domain.ArticleCateDo;
import com.virgo.demo.cms.domain.bo.ArticleCateBo;
import com.virgo.demo.cms.domain.vo.ArticleCateVo;
import jakarta.servlet.http.HttpServletRequest;

public interface ArticleCateService extends IService<ArticleCateDo> {

	/**
	 * 根据code查找
	 * @param code String
	 * @return ArticleCateDo
	 */
	ArticleCateDo loadByCode(String code);

	/**
	 * 编辑文章分类
	 * @param articleCateBo ArticleCateBo
	 */
	void saveArticleCate(ArticleCateBo articleCateBo);

	/**
	 * 修改状态
	 * @param id Long
	 * @param status Long
	 */
	void updateStatus(Long id, Integer status);

	/**
	 * 删除文章分类
	 * @param codes String
	 */
	void deleteArticleCate(String codes);

	/**
	 * 文章分类列表
	 * @param request HttpServletRequest
	 * @return ListDataVo<ArticleCateVo>
	 */
	ListDataVo<ArticleCateVo> findList(HttpServletRequest request);
}